<?php
class Comment extends Eloquent
{
    protected $table = 'comment';

    public $timestamps = false;

    protected $guarded = [];

    /**
     * 反向关系 == 多对一
     */
    public function posts()
    {
        return $this->belongsTo('Post', 'post_id');
    }
}